package main;
import enums.Sex;
import enums.Subject;


public class Teacher extends Person{
	private Subject subject;
	private String firstName;
	private String lastName;
	private Sex sex;
	
	public Teacher(String firstName, String lastName, Sex sex, Subject subject){
		super(firstName, lastName, sex);
		this.subject = subject;
	} 
	
	public Teacher(){
	super (null, null, Sex.MALE); 
	//this.subject = Subject.JAVA_LANGUAGE;
	}
	
	public void setSubject(Subject subject){
		this.subject = subject;
	}
	
	public String getSubject() {
		if(this.subject == null){
			this.subject = Subject.JAVA_LANGUAGE;
		}
		String strSubject = this.subject.getSubject();
		return strSubject;
	}
	public void printTeacherBasicInfo(){
		System.out.println(this.getPersonsFirstName()+" "+this.getPersonsLastName()+
				"\nSubject: "+this.subject.getSubject()+"\nSex:"+this._Sex().getSex());	
	}
	public String getTeacherBasicInfo(){
		String basicInfo = this.getPersonsFirstName()+","+this.getPersonsLastName()+
				","+this.getSubject()+","+this._Sex().getSex();	
		return basicInfo;
	}
}